<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>原料仓库管理系统</title>
</head>
<?php 
require('lianjie.php');
?>

<body>
<?php
$biao=$_POST['tel'];
$na=$_POST['name'];
$ph=$_POST['ph'];
$id=$_POST['id'];
$sw=$_POST['SW'];
$gu=$_POST['GU'];
$nie=$_POST['NIE'];
$meng=$_POST['MENG'];
$tong=$_POST['TONG'];
$li=$_POST['LI'];
$bs=$_POST['BS'];
$kq=$_POST['KQ'];
$cw=$_POST['CW'];
$sql="update ".$biao." set SW=".$sw.",GU=".$gu.",NIE=".$nie.",MENG=".$meng.",TONG=".$tong.",LI=".$li.",BS=".$bs.",KQ='".$kq."',CW='".$cw."' where name='".$na."' and PH='".$ph."' and id='".$id."';";
//echo $sql;
if(mysqli_select_db($connID,$dbName)){
	if($result=mysqli_query($connID,$sql)){
		echo "<script type='text/javascript'>alert('修改成功');location='CKGL_cksj.php';</script>";
	}
	else{ echo "<script type='text/javascript'>alert('修改失败');location='CKGL_cksj.php';</script>";}
}
?>
</body>
</html>